package com.kingdee.eas.hr.emp;

import com.kingdee.bos.framework.ejb.EJBRemoteException;
import com.kingdee.bos.util.BOSObjectType;
import java.rmi.RemoteException;
import com.kingdee.bos.framework.AbstractBizCtrl;
import com.kingdee.bos.orm.template.ORMObject;

import com.kingdee.bos.util.*;
import com.kingdee.bos.Context;
import com.kingdee.bos.BOSException;
import com.kingdee.bos.framework.*;
import com.kingdee.eas.hr.emp.app.*;

public class EmployeeSnapshotFacade extends AbstractBizCtrl implements IEmployeeSnapshotFacade
{
    public EmployeeSnapshotFacade()
    {
        super();
        registerInterface(IEmployeeSnapshotFacade.class, this);
    }
    public EmployeeSnapshotFacade(Context ctx)
    {
        super(ctx);
        registerInterface(IEmployeeSnapshotFacade.class, this);
    }
    public BOSObjectType getType()
    {
        return new BOSObjectType("4B6613FE");
    }
    private EmployeeSnapshotFacadeController getController() throws BOSException
    {
        return (EmployeeSnapshotFacadeController)getBizController();
    }
    /**
     *snapshotPerson-User defined method
     */
    public void snapshotPerson() throws BOSException
    {
        try {
            getController().snapshotPerson(getContext());
        }
        catch(RemoteException err) {
            throw new EJBRemoteException(err);
        }
    }
}